package com.mu.julymall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mu.common.utils.PageUtils;
import com.mu.julymall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author july
 * @email 3514736731@qq.com
 * @date 2024-04-02 21:48:05
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> list);

    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

